package libregnummap;
import java.awt.Color;
/*
 * Line.java
 *
 * Created on March 4, 2009, 5:31 PM
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

/**
 *
 * @author alvaro
 */
public class Line extends PrintableObject {
    
    private int x0, x1, y0, y1;
    private float stroke;

    public float getAlpha() {
        return alpha;
    }

    private float alpha;

    public float getStroke() {
        return stroke;
    }

    public int getX0() {
        return x0;
    }

    public int getX1() {
        return x1;
    }

    public int getY0() {
        return y0;
    }

    public int getY1() {
        return y1;
    }

    public void setAlpha(float alpha) {
        this.alpha = alpha;
    }

    public void setStroke(float stroke) {
        this.stroke = stroke;
    }

    public void setX0(int x0) {
        this.x0 = x0;
    }

    public void setX1(int x1) {
        this.x1 = x1;
    }

    public void setY0(int y0) {
        this.y0 = y0;
    }

    public void setY1(int y1) {
        this.y1 = y1;
    }
    
    /** Creates a new instance of Line */
    Line(int x0, int y0, int x1, int y1, Color c, float stroke, float alpha, String type) {
        this.x0 = x0;
        this.x1 = x1;
        this.y0 = y0;
        this.y1 = y1;
        
        this.stroke = stroke;
        this.alpha = alpha;
        setType(type);
        setColor(c);
    }
    
}
